package com.gp.billsrecord.ui.common.adapters

import android.content.Context
import android.widget.ArrayAdapter
import android.widget.TextView
import com.gp.billsrecord.model.data.AccountInfo
import com.gp.billsrecord.model.data.AccountType

class AccountSpinnerAdapter(context: Context, resource: Int, textViewRes: Int) :
    ArrayAdapter<AccountType>(context, resource, textViewRes) {
    override fun getItemId(position: Int): Long {
        return getItem(position)?.typeId ?: 0L
    }
}
